def checkinput(theinput, arglist):
    if theinput in arglist:
        return True
    else:
        print ("Not a valid input")
        return False

